Scanning apparatus having image correction funciton

ABSTRACT

A scanning apparatus includes a scanning head that scans an image of a document positioned on a stage glass, but varying in its distance therefrom. A boundary line is detected to determine an amount of skew therein. A skew line is compared with an established reference line, and a correction factor is calculated based on the result of the comparison. The original image processed to map the boundary line to the reference line and image data inside of the boundary line is similarly mapped based on the calculated correction factor. Beneficially, skews of an image produced when a thick book is scanned can be corrected simply.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a continuation application of prior application Ser.No. 11/766,961, filed on Jun. 22, 2007 in the United States Patent andTrademark Office, which claims priority under 35 U.S.C. §119(a) fromKorean Patent Application No. 2006-104700, filed in the KoreanIntellectual Property on Oct. 26, 2006, the entire contents of which areincorporated herein by reference.

BACKGROUND OF THE INVENTION

1. Field of the Invention

The present general inventive concept relates to an apparatus andmethod, and more particularly, to a scanning apparatus and method, tocorrect skewing distortion in an image.

2. Description of the Related Art

In general, a scanning apparatus is a device that scans a document toproduce image data with predetermined resolution. Referring to FIGS. 1Aand 1B, a general scanning apparatus 10 includes a stage glass 20 onwhich a document is placed and a scanning head 30 that scans thedocument while translating below the stage glass 20 from one end of thestage glass 20 to the other. The scanning head 30 includes a lightsource module 31 that irradiates the document with light and aphotoelectric converting device 33 that detects light reflected by thedocument and converts the detected light into an image signal.

In the conventional scanning apparatus 10, when the scanning head 31scans a thick book, a region near a folding line A of the book ispositioned above the stage glass 20 by a gap d1 while a page region B ofthe book contacts the stage glass 20, as illustrated FIG. 1B.Accordingly, a focus distance between the light source module 31 and thephotoelectric converting device 33 varies as the scanning head 30 movesfrom the page region B to the folding line A (I1≠I2). Due to such afocus distance difference occurring when the scanning head 30 moves,there arises a problem in that an image of the region near the foldingline A has spatial distortion (or skew) or appears to be darker than theimage in the page region B, as illustrated in FIG. 1C.

SUMMARY OF THE INVENTION

The present general inventive concept provides a scanning apparatuswhich corrects distortion (or skew) included in an image.

Additional aspects and utilities of the present general inventiveconcept will be set forth in part in the description which follows and,in part, will be obvious from the description, or may be learned bypractice of the present general inventive concept.

The foregoing and/or other aspects and utilities of the present generalinventive concept can be achieved by providing a scanning apparatuscomprising a stage glass on which a document is positioned, a scanninghead that scans an image of the document while translating below thestage glass, an image processing part that processes image data producedby the scanning head, a boundary line detecting part that detects aboundary line of the image, and a controller that, if a skew line existsin the boundary line detected by the boundary line detecting part,compares the skew line with a predetermined reference line, calculates acorrection factor based on a result of the comparison, and controls theimage processing part to correct the skew line and image data inside ofthe boundary line based on the calculated correction factor.

The reference line may be determined based on a a straight line segmenton the boundary line.

The controller may calculate a distance between the document image andthe stage glass image and may control the image processing part to map acoordinate of the skew line onto a coordinate of the reference linebased on the correction factor.

The correction factor may have a plurality of values to specifyrespective distances between a first boundary line including the skewline and a corresponding second boundary line.

The scanning apparatus may further comprise an image forming part thatoutputs the image, wherein the controller controls the image formingpart to output the image processed by the image processing part.

The foregoing and/or other aspects and utilities of the present generalinventive concept can be also achieved by providing an image processingmethod of a scanning apparatus comprising a stage glass on which adocument is loaded and a scanning head that scans an image of thedocument while translating below the stage glass, comprising detecting aboundary line of the image, calculating a coordinate value of theboundary line and detecting a skew line whose coordinate value is notcalculated, comparing the skew line with a reference line indicated by astraight line in the boundary line and calculating a correction factorto map the skew line onto the reference line based on a result of thecomparison, and correcting the image and the skew line based on thecalculated correction factor.

The foregoing and/or other aspects and utilities of the present generalinventive concept are also achieved by providing an image formingmethod, comprising providing image data including a completelyresolvable region thereof and a varyingly resolvable region thereof,extrapolating a linear relationship in the image data of the completelyresolvable region across the varyingly resolvable region, and mappingthe image data in the varyingly resolvable region to be aligned in acorrected image by the linear relationship.

The foregoing and/or other aspects and utilities of the present generalinventive concept are also achieved by providing a computer-readablemedium having encoded thereon computer instructions that, when decodedand executed by a processor, performs receiving image data including acompletely resolvable region thereof and a varyingly resolvable regionthereof, extrapolating a linear relationship in the image data of thecompletely resolvable region across the varyingly resolvable region, andmapping the image data in the varyingly resolvable region to be alignedin a corrected image by the linear relationship.

The foregoing and/or other aspects and utilities of the present generalinventive concept are also achieved by providing an image formingapparatus, comprising a scanning head having a predefined optical depthof field with respect to a scanning plane to obtain image data of adocument at least partially coplanar with the scanning plane, acontroller to control the scanning head to translate across the scanningplane to acquire an original image of the document, and an imageprocessing part to relocate skewed image data in the original imageacquired from a portion of the document at least partially removed fromthe scanning plane while within the depth of field to a new location ina corrected image, the new location aligning the skewed image data withcorresponding focused data of the original image data acquired from theportion of the document coplanar with the scanning plane.

The foregoing and/or other aspects and utilities of the present generalinventive concept are also achieved by providing an image processorcomprising a storage part to store an original image of a document atleast partially coplanar with a plane defining an optical depth offield, an image processing part to relocate skewed image data in theoriginal image acquired from a portion of the document at leastpartially removed from the plane while within the depth of field to anew location in a corrected image, the new location aligning the skewedimage data with corresponding focused data of the original image dataacquired from the portion of the document coplanar with the scanningplane as determined by a location of a boundary of the focused datarelative to a location of a boundary of the skewed data.

The foregoing and/or other aspects and utilities of the present generalinventive concept are also achieved by providing an image formingapparatus, comprising a controller to receive a scanned document image,and a unit to determine a boundary and a folding line from the scanneddocument image, to determine a correction region of the scanned documentimage with respect to a center line and the folding line, and to correcta boundary line of the correction region of the scanned document imageaccording to a distance of skew from a reference line and the foldingline.

BRIEF DESCRIPTION OF THE DRAWINGS

The above and/or other aspects and utilities of the present generalinventive concept will become apparent and more readily appreciated fromthe following description of the exemplary embodiments, taken inconjunction with the accompanying drawings, in which:

FIG. 1A is a perspective view of a general scanning apparatus;

FIG. 1B is a diagram illustrating a focus distance difference in thegeneral scanning apparatus;

FIG. 1C is an illustration of a distorted image formed by the generalscanning apparatus;

FIG. 2 is a block diagram of a scanning apparatus according to anexemplary embodiment of the general inventive concept;

FIG. 3 is a block diagram illustrating a detailed configuration of aboundary line determining part of FIG. 2;

FIGS. 4A to 4D are diagrams to explain a boundary line determiningprocess of the boundary line determining part;

FIG. 5 is an image illustrating a result of correction on an image bythe scanning apparatus according to the exemplary embodiment of thegeneral inventive concept; and

FIG. 6 is a flow chart illustrating image processing of the scanningapparatus according to the exemplary embodiment of the general inventiveconcept.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

Reference will now be made in detail to the exemplary embodiments of thepresent general inventive concept, examples of which are illustrated inthe accompanying drawings, wherein like reference numerals refer to likeelements throughout. The embodiments are described below so as toexplain the present general inventive concept by referring to thefigures.

FIG. 2 is a block diagram of a scanning apparatus 1 according to anexemplary embodiment of the general inventive concept. As illustrated inFIG. 2, the scanning apparatus 1 of the general inventive conceptcomprises an input part 100 to produce a signal indicative of adirective from a user, a stage glass 200 on which a document is placed,a scanning head 300 that scans the document while translating below thestage glass 200 between both end portions thereof, and a storing part400 in which, among other things, an original document image produced bythe scanning head 300 is stored. The scanning apparatus 1 may furthercomprise a boundary line determining part 500 that determines a boundaryline between document and the stage glass in the produced originaldocument image, a correction factor calculating part 600 that calculatesa correction factor (CF) to correct a distorted region in the originaldocument image, if the distorted region is present in the originaldocument region, an image processing part 700 that corrects thedistorted region of the image based on the calculated correction factor(CF), an image forming part 800 that renders the image corrected by theimage processing part 700, and a controller 900 that controls thecorrection factor calculating part 600 and the image processing part 700to calculate the correction factor (CF) and to correct the image of thedistorted region, if the distorted region is detected in the originaldocument image. The boundary line may be formed between the document andthe stage glass 200, but other boundaries in the image may be used inconjunction with the present general inventive concept.

The exemplary system illustrated in FIG. 2 may be implemented inhardware, software, or a combination of both. For example, certaincomponents, such as the boundary line determining part 500, thecorrection factor calculating part 600, and the image processing part700, may be suited to be realized as processor instructions executing inone or more computer execution threads on one or more processors. Eachof those functional components may be implemented on a dedicatedprocessor, or may be executed on a single processor, such as a processorthat implements the controller 900. Alternatively, each componentillustrated in FIG. 2 may be realized in one or more applicationspecific circuits. The present general inventive concept may be embodiedthrough numerous configurations other than that illustrated in FIG. 2without deviating from the spirit and intended scope thereof.

Further, it is to be understood that although the functionalcompartmentalization of FIG. 2 facilitates an understanding of thepresent general inventive concept through descriptions of the componentsof the illustrated exemplary embodiment, such configuration is notessential to practice the present general inventive concept. Elementsother than those shown and described may be substituted therefor,functionality portrayed as carried out in multiple elements may becombined into a single component, and elements described as discrete maybe distributed across multiple components. Indeed, numerous variations,alternatives and modifications will become apparent to the skilledartisan upon review of this disclosure and the present general inventiveconcept is intended to encompass such alternative configurations.

The exemplary input part 100 may receive a scanning signal from theuser. The input part 100 may be provided with information on a region tobe corrected and information on whether a region is to be corrected. Theinput part 100 may be implemented as a plurality of input panels bywhich various signals are generated responsive to user directives inputthereon. A display part (not illustrated) that displays the originaldocument image produced by the scanning head 300 may be provided on theinput part 100. In certain embodiments of the present general inventiveconcept, the input part 100, when combined with the display part, mayimplement a graphical user interface (GUI).

The present general inventive concept is not limited by the type orconstruction of the scanning mechanism. The description below will referto elements of FIG. 1A-1B to illustrate exemplary embodiments of thoseportions of a conventional scanning mechanism that may be used inconjunction with the present general inventive concept. It is to beunderstood that such reference to conventional elements are made forpurposes of description, and not limitation.

It is to be made clear also that the conventional scanning mechanism,when used in embodiments of the present general inventive concept, istypically limited by its optics to a “depth of field,” which refersherein to the distance from the stage glass 200 up to which resolvableimagery can be obtained by the sensor. Any object placed on the stageglass 200 that is beyond the depth of field is “irresolvable” by thesensor, and will typically appear as a field of a foreign color, such asblack. The imagery within the depth of field, but not in contact withthe stage glass, referred to herein as the folding line (FL) region,will be “varyingly resolvable”, and will often be skewed with respect tothe image data obtained from a document in contact with the stage glass200. The imagery from portions of the document in contact with thestaging glass 200 will be referred to herein as “completely resolvable.”

The stage glass 200 on which the document is placed may be made oftransparent glass material through which light from a light sourcemodule 31 passes. The stage glass 200 may have the same structure andcomposition as conventional stage glasses, and therefore, detailedexplanation thereof will be omitted for the sake of brevity.

The exemplary scanning head 300 comprises the light source module 31that irradiates the document positioned on the stage glass 200 withlight, a photoelectric converting part 33 that receives light reflectedby the document and converts the received light into an image signal,and an analog/digital converting part (not illustrated) that convertsthe image signal into digital image data. For purposes of descriptionand not limitation, the scanning head 300 scans the document along a Yaxis (see FIG. 4A) of the stage glass 200. The scanning head 300 may betranslated by means of a driving part (not illustrated) according to acontrol signal from the controller 900. The driving part (notillustrated) may have the same structure as those of conventionalscanning heads, such as those generally embodied by a stepping motor,and may move the scanning head 300 by means of a belt-pulley assembly, arack-pinion assembly, etc.

The light source module 31 and the photoelectric converting part 33 maybe constructed into linear formation, such as by a light bar and alinear sensor array. When so embodied, image data are produced as aplurality of scan lines of the document. The scan lines are generated ina sequential order and include data points, such as pixel data, that maybe sequentially ordered within each scan line. Thus, a coordinate systemin the image may be defined by scan lines in the “Y” direction andpixels in the “X” direction. Beneficially, such a coordinate systemallows identification of data during the scanning operation and prior tothe completion thereof.

The exemplary storing part 400 stores the original document image dataproduced by the scanning head 300 and corrected image data corrected bythe image processing part 700. In this exemplary embodiment, the storingpart 400 is provided to store each scan line corresponding to each lineproduced by the photoelectric converting part 33 and sequentially storesimage data produced in each line, as described above. For example, imagedata corresponding to a first scan line from the photoelectricconverting part 33 may be stored in a corresponding area of the storingpart 400. Accordingly, the image data partially acquired at a first scanline of the document are stored in the storing part 400 in a mannerwhere coordinate values of locations on the document may be obtained.

Storing part 400 may store not only image data, as indicated above, butmay also provide storage for processing instructions that, when executedby a processor, perform operations, such as those described below. Assuch, the storing part 400 may be a combination of persistent storage,such as by read-only memory (ROM), flash memory, magnetic or opticalstorage devices, and others, and volatile memory, such as random-accessmemory (RAM), and others. It is to be understood, also, that althoughthe storing part 400 is illustrated as a discrete element in FIG. 2, thestoring part 400 may be distributed among multiple devices, including asan element in the other components illustrated. For purposes ofdescription, and not limitation, storing part 400 will be discussedbelow as if it were a discrete element, and, as used herein, the term“storing part 400,” or, alternatively “memory 400,” is intended to referto the combined storage capability of the scanning apparatus 1, toinclude temporal storage, such as by pipelining and delay lines.

It is to be understood that in the descriptions that follow, various“lines” will be discussed as if such lines were physically drawn on theimage. However, such description is for purposes of explaining certainunderlying concepts of the present general inventive concept andphysically rendering the lines so that they can be viewed is notessential to practice the present general inventive concept. Certainembodiments may allow a user to view, and even modify the linesdescribed below, but even then, the lines are abstracted to becompatible to manipulation by components of the apparatus embodying thepresent general inventive concept. For example, the lines may berepresented through data structures maintained in the storing part 400that contain information on interconnected nodes forming endpoints ofline segments. The present general inventive concept is not limited bythe implementation details of manipulating line data and the storage ofthat data and description thereof will be omitted in the interest ofbrevity.

The exemplary boundary line determining part 500 determines a boundaryline (BL) in the original image data stored in the storing part 400. Asillustrated in FIG. 3, the boundary line determining part 500 mayinclude a boundary line detecting part 510 that detects a boundary line(BL) of an image, a folding line detecting part 520 that detects afolding line (FL) of the image based on the boundary line (BL) detectedby the boundary line detecting part 510, a skew line detecting part 530that detects a skew line (SL) occurring in the boundary line (BL), acorrection region setting part 540 that determines a correction regionincluding the skew line (SL), and a separating line setting part 550that determines a separating line (SL) indicating a boundary of theimage in the correction region. The full definitions of the linesbriefly mentioned above are given in the paragraphs that follow.

As used herein, a boundary line is one of a set of line segments thatseparates a document region in the image from the surrounding regionthat forms an image of the empty stage glass 200 beyond the depth offield of the scanning head 300, which is referred to as the “stage glassregion.” Referring to FIG. 4 a, the boundary line detecting part 510detects the boundary line (BL) separating the document region from thestage glass region in the original image data. The boundary linedetecting part 510 may obtain coordinates of corners of a minimalquadrilateral region that includes the document using the coordinatesystem defined on the original image data stored in the storing part400, such as is described above.

A folding line (FL), as used herein, is a line in the region of theimage that is defocused, e.g., where the document is furthest from thestage glass 200. In instances where the document is a book, asillustrated in 4A, the folding line (FL) is located where the pages arebound together. As indicated above, the folding line (FL) region inwhich the folding line (FL) resides, is a varyingly resolvable region ofthe image, and may include portions that are irresolvable. The exemplaryfolding line detecting part 520 detects the folding line (FL) in theoriginal image data. As illustrated in FIG. 4A, the folding line (FL) mybe represented by a straight line that interconnects a top folding pointTFP and a bottom folding point BFP. Here, each folding point may bedetermined as a point on an edge in the image oriented along the Y-axisdirection and located on a page a distance from another edge in theY-axis direction that exceeds 90% of the horizontal length of one pageof the book. Alternatively, the upper folding point TFP and the lowerfolding point BFP may be determined as being at positions at which acalculated slope of the boundary line (BL) changes sign. Othertechniques to locate a point at which pages of the document form afolding region, or similar formation, may be used with the presentgeneral inventive concept without deviating from the spirit and intendedscope thereof.

The boundary line (BL) may be composed of a plurality of line segments,each of which is referred to as a “partial line.” A straight partialline may be referred to as a “skew line” when constituting the boundaryline (BL), and a degree of skew of pages in the left and right sides ofthe folding line (FL) may be calculated therewith. The boundary line(BL) will generally enclose a complex shape defining the document regiontherein. The shape of the document region may thus be represented by aplurality of points interconnected by partial lines. The points at whichpartial lines meet to form the boundary line (BL) at a portion thereofhaving a small curvature may be expressed by one straight line and aportion having a large curvature may be expressed by a plurality ofstraight lines. A straight line may be formed to extend across thefolding line (FL) region to join together partial lines on either sidethereof that define straight portions, or portions of low curvature. Theline joining the low curvature portions of the boundary line (BL) acrossthe folding line (FL) region is defined as a reference line (RL). Eachof the partial lines of the boundary line (BL) that deviate from thereference line (RL) form an angle with respect to the reference line(RL), which is an indication of an amount of skew in the vicinity ofthat partial line. The exemplary skew line detecting part 530 detectsthe skew lines in the original image data.

The correction region setting part 540 may establish four correctionregions in the original image data around the folding line (FL) and a CXaxis, as illustrated in FIG. 4A. The CX axis may be at a known position,such as at a center line of the stage glass 200. The original documentimage data may be separated into a right top (RT) region, a right bottom(RB) region, a left top (LT) region and a left bottom (LB) region, asdemarked by the folding line (FL) and the CX axis. In certainembodiments of the present general inventive concept, the setting andnumber of correction regions depend on whether the folding line (FP) isdetected, where the absence of such detection may indicate that no skewcorrection is necessary. For example, if the top folding point (TFP) isdetected, the right top region (RT) and the left top region (LT) may beset as the correction regions, in that those regions would be influencedby the folding line (FL) region. Similarly, if the bottom folding point(BFP) is detected, the right bottom region (RB) and the left bottomregion (LB) may be set as the correction regions. In addition, if bothof the top folding point (TFP) and the bottom folding point (BFP) aredetected, all of the four regions may be set as the correction regions.

As used herein, a separating line is a series of line segments formingthe boundary line (BL) in the folding line (FL) correction region, asillustrated in FIG. 4C. Since the folding line (FL) correction region isfarther separated from the stage glass 200 than other regions of thedocument, the scanning head 300 is defocused in this folding line (FL)correction region, and accordingly, the original image in the foldingline (FL) correction region is varyingly resolvable and portions thereofmay appear to be dark. Accordingly, it is difficult to detect theboundary line (BL) of the image in the folding line (FL) correctionregion. The separating line setting part 550 determines a separatingline (SL) that separates the stage glass region from the document imageregion in the folding line (FL) correction region using, for example,the coordinate values of the predetermined reference line (RL) and thefolding line (FL).

Referring to FIG. 4D, in certain embodiments of the present generalinventive concept, the separating line setting part 550 sets a point atwhich the reference line (RL) meets the boundary line (BL) as point P₁and sets the top folding point (TFP) to be point P₅. Then, theseparating line setting part 550 determines a Y axis direction distanceY₁₅ between the points P₁ and P₅ based on coordinate values of P₁ andP₅. The distance may be calculated in terms of, for example, a number ofscan lines and a number of pixels as determined from correspondinglocations in the storing part 400, e.g., the coordinate values of thepoints P₁ and P₅ are determined by the controller 900 based on the imagedata stored in the corresponding scan line unit of pixels in the storingpart 400.

The separating line setting part 550 may calculate an X axis directiondistance X_(5R) between the point R₅ and the reference line (RL). Then,the separating line setting part 550 may obtain coordinate values ofpoints P₂ to P₄ using, for example, an interpolation method based on anarea ratio of a triangle defined by the three angular points P₅, P₁ andR₅ to each of inscribed triangles. For example, the triangle illustratedin FIG. 4D defined by the three angular points P₁, R₄ and P₄ has an areathat is a fraction of the area of the triangle defined by the points P₁,R₅, and P₅. The distance X_(4R) between the point R₄ and the point P₄,for example, may be calculated by multiplying the distance between thepoint P₅ and the point R₅ by a predetermined weighting value. Thus, oncethe coordinate values of the points P₁ to P₅ are determined, a distanceX_(2R) between the point R₂ and the point P₂ and a distance X_(3R)between the point R₃ and the point P₃ may be obtained in the same way.

When the separating line (SL) in the corresponding correction region isset by the boundary line determining part 500 as described above, thecorrection factor calculating part 600 calculates a correction factor(CF) to correct the coordinate values in the original image so that thepoints on the separating line (SL) are mapped onto the points on thereference line (RL).

It is to be understood that the illustration of FIG. 3 is in no wayintended to imply an order of operations between the functionalcomponents of the boundary line determining part 500 illustrated in FIG.3. The operations assigned to components of the exemplary embodimentillustrated in FIG. 3 may be performed in any order as needed to obtaininformation required by another of the exemplary components. Certainoperations need not be performed in certain instances andimplementations of the present general inventive concept will includehandling of those instances. For example, if the folding line (FL)region of a particular image includes no irresolvable data and theboundary therein may be located without the image processing of theseparating line setting part 550, embodiments of the present generalinventive concept will direct the system to bypass the component and itsconcomitant operations.

Referring once again to FIG. 4D, the correction factor (CF) may bedetermined by a ratio of a distance between the CX axis and the pointson the separating line (SL) to a distance between the CX axis and thereference line (RL). That is, the correction factor (CF) may be obtainedby a ratio of the area of a triangle defined by the three angular pointsP₁, C_(X) and P₅ to the area of a triangle defined by the three angularpoints P₁, R₅ and P₅. As one example, in a line including the point P₅,the correction factor (CF) is determined a ratio of a distance m betweenthe CX axis to the point R₅ on the separating line (SL) to a distance nbetween the CX axis and the point P₅ on the reference line (RL). Thus,the correction factor (CF) corresponding to each line is obtainedaccording to the following generalized equation 1.

k=m/n  <Equation 1>

In equation 1, k represents the correction factor (CF).

When the separating line (SL) is mapped onto the reference line (RL), anarbitrary point s having coordinate value (p, q) inside the separatingline (SL) is mapped to a point t of a coordinate value (p₁, q₁) by thefollowing equation 2.

(p ₁ , q ₁)=(p, q×k)  <Equation 2>

Equation 2 is a transformation to map the arbitrary point s ofcoordinate value (p, q) inside of the separating line (SL) into themapped point t represented by the coordinate value (p₁, q₁). Invertingthe equation 2, the original position s (p, q) before mapping can beobtained from the mapped point t having coordinate value (p₁, q₁). Inthis case, the correction factor (CF) k may be expressed by thefollowing equation 3.

k=n/m  <Equation 3>

The original coordinate (p, q) value of the point s mapped to the pointt having coordinate value (p₁, q₁) may be obtained by the followingequation 4.

(p, q)=(p ₁ , q ₁ /k)  <Equation 4>

Since the correction factor (CF) has different values assigned todifferent lines in the image, the above equation 4 may be modified toapply to each of the different lines.

Additionally, an amount of skew varies by correction region, as observedin FIG. 4A, and, accordingly, the above equation 4 may be modified toapply to other correction regions UR, LR and LL depending on therelationship between the data in each correction region and the CX axis.

When a calculation of the correction factor (CF) corresponding to eachportion of the correction region is obtained, the correction factorcalculating part 600 informs the controller 900 of the transformationinformation to map the image data in accordance with the correspondingcorrection factor (CF).

The exemplary image processing part 700 maps the separating line (SL)onto the reference line (RL) using the correction factor (CF) calculatedin the correction factor calculating part 600 and corrects the imagedata inside of the separating line (SL) to be appropriately placed, inaccordance with the correction factor (CF), to the inside of referenceline (RL) to produce thereby a corrected image (CI). Since theseparating line (SL) moves to the reference line linearly by correctionof the image processing part 700, as illustrated in FIG. 5, an originalimage (OI) having skews in its folding line (FL) region can be correctedinto the corrected image (CI). The image processing part 700 mayadditionally correct brightness and resolution of the corrected image(CI) according to appropriate directives input by a user.

The image forming part 800 renders the corrected image (CI) corrected bythe image processing part 700 so that the corrected image may be printedon a page of paper or displayed on a display device. The rendering ofthe corrected image may be performed according to a control signal fromthe controller 900 generated from information on the correction factors(CF). The image forming part 800 may use an inkjet method, anelectrophotography method, a thermal transfer printing method, etc.depending on a method in which an image is printed on a paper. Theinkjet method is a method of printing the corrected image on a paperwhen an ink cartridge jets ink drops on the paper while reciprocating ina horizontal direction of the paper. The electrophotography method is amethod of selectively applying developer on a paper using a potentialdifference among the developer, a photoconductor and a transfer roller.The thermal transfer printing method is a method of transferring inkonto a paper by heating and pressurizing an ink ribbon coated with inkon a paper. The image forming part 800 may be implemented as aconventional image forming part, and detailed explanation thereof willbe omitted to the sake of brevity.

The exemplary controller 900 controls the boundary line detecting part510 to detect the boundary line (BL) of the original image produced bythe scanning head 300. When the boundary line detecting part 510 informsthe controller 900 that the boundary line (BL) has a skew region, thecontroller 900 controls the boundary line determining part 500 and theimage processing part 700 to correct the skew region of the originalimage.

Specifically, the exemplary controller 900 calculates a coordinate valueof the original image stored in the storing part 400, informs theboundary line determining part 500 of the calculated coordinate value,informs the image processing part 700 of the correction factor (CF)received from the correction factor calculating part 600, and controlsthe image processing part 700 to correct the original image to be thecorrected image. In addition, the controller 900 controls the imageforming part 800 to output the corrected image or to store the correctedimage in the storing part 400 according to a selection by a user. Thecontroller 900 may further receive user directives from the user via theinput part 100, and control the features of the scanning apparatus 1accordingly.

An image processing method according to the exemplary embodiment of thegeneral inventive concept will now be described with reference to FIGS.2 to 6.

First, a user positions a document onto the stage glass 200 andactivates a scanning signal. The scanning head 300 then scans thedocument to produce an original image while translating below the stageglass 200 at operation S100. The boundary line detecting part 510detects a boundary line (BL) of the produced original image at operationS200. If it is detected that the boundary line (BL) defines a skewregion, the controller 900 controls the boundary line determining part500 to determine the separating line (SL) of a correction region.Accordingly, the boundary line determining part 500 first determines areference line (RL) at operation S400, and calculates a correctionfactor by specifying which points on the boundary line (BL) are mappedonto points on the reference line (RL), based on knowledge of thelocations of the boundary line (BL) and the reference line (RL), atoperation S500.

The controller 900 controls the image processing part 700 to correctlines of the original image according to the calculated correctionfactor and calculation equation at operation S600. If there is aplurality of correction regions, remaining correction regions arecorrected according to the above-described process at operation S700.When the user applies an output signal to output the corrected image,the controller 900 controls the image forming part 800 to print thecorrected image on a paper at operation S910. Otherwise, the controller900 stores the corrected image in the storing part 400.

As described above, it can be seen that the original image having theskew image as illustrated in FIG. 5A is corrected so that the separatingline (SL) concurs with the reference line (RL) by the scanning apparatus1 of the general inventive concept, as illustrated in FIG. 5B.

Although it has been illustrated in the exemplary embodiment that thescanning apparatus 1 includes only the image forming part 800, thescanning apparatus 1 may further include a facsimile machine thattransmits the corrected image to an external facsimile machine, ane-mail transmitting part that transmits the corrected image by e-mailthrough a network, etc.

Certain embodiments of the present general inventive concept provide forthe functional components to manufactured, transported, marketed and/orsold as processor instructions encoded on computer-readable media. Thepresent general inventive concept, when so embodied, can be practicedregardless of the processing platform on which the processorinstructions are executed and regardless of the manner by which theprocessor instructions are encoded on the medium.

It is to be understood that the computer-readable medium may be anymedium on which the instructions may be encoded and then subsequentlyretrieved, decoded and executed by a processor, including electrical,magnetic and optical storage devices, and wired, wireless, optical andacoustical communication channels. The computer readable medium mayinclude either or both of persistent storage, referred to herein as“computer-readable recording media” and as spatiotemporal storage,referred to herein as “computer-readable transmission media”. Examplesof computer-readable recording media include, but not limited to,read-only memory (ROM), random-access memory (RAM), and other electricalstorage; CD-ROM, DVD, and other optical storage; and magnetic tape,floppy disks, hard disks and other magnetic storage. Thecomputer-readable recording media may be distributed across components,to include such distribution through storage systems interconnectedthrough a communication network. The computer-readable transmissionmedia may transmit encoded instructions on electromagnetic carrier wavesor signals, or as acoustic signals through acoustically transmissivemedia. Moreover, the processor instructions may be derived fromalgorithmic constructions of the present general inventive concept invarious programming languages, the mere contemplation of whichillustrates the numerous realizable abstractions of the present generalinventive concept.

As apparent from the above description, the present general inventiveconcept provides a scanning apparatus which is capable of detecting askew region in original image data produced by a scanning head andcorrecting the skew region using coordinate values of a boundary line ofthe original image.

Accordingly, since the skew region can be corrected by using theoriginal image data without knowledge of a focus distance between thescanning head and a stage glass, the general inventive concept can begenerally applied to scanning apparatuses having different focusdistances.

In addition, since the skew region can be automatically corrected, theuser's convenience is improved.

Although a few exemplary embodiments of the present general inventiveconcept have been illustrated and described, it will be appreciated bythose skilled in the art that changes may be made in these embodimentswithout departing from the principles and spirit of the generalinventive concept, the scope of which is defined in the appended claimsand their equivalents.

1. A scanning apparatus comprising: a stage glass on which a document ispositioned; a scanning head which scans an image of the document whiletranslating below the stage glass; an image processing part whichprocesses image data produced by the scanning head; a boundary linedetecting part which determines a correction region including a skewline; a correction region setting part which determines a correctionregion including a skew line; and a controller which sets at least oneregion of the image as the correction region whether a folding point isdetected, if the skew line in the boundary line is detected by theboundary line detecting part, compares the skew line with apredetermined reference line which is a line that extends a straightline portion of the boundary line across a folding line, calculates acorrection factor corresponding to the correction region based on aresult of the comparison, and controls the image processing part tocorrect the skew line and the image data enclosed by the boundary linebased on the calculated correction factor.
 2. The scanning apparatusaccording to claim 1, wherein the correction region setting part setsfour regions as the correction in the image of the document around thefolding line and a predetermined axis which is orthogonal to the foldingline.
 3. The scanning apparatus according to claim 2, wherein thefolding point comprises a top folding point and a bottom folding point,and the region of the image comprises a right top region, a right bottomregion, a left top region and a left bottom region, wherein thecontroller sets the right top region and the left top region as thecorrection regions if the top folding point is detected, and sets theright bottom region and the left bottom region as the correction regionsif the bottom folding point is detected.
 4. The scanning apparatusaccording to claim 2, wherein the correction factor corresponds to eachof the correction region.
 5. The scanning apparatus according to claim1, wherein the correction factor is determined by a ratio of a distancebetween the predetermined axis and points on a first boundary lineincluding the skew line.
 6. The scanning apparatus according to claim 5,wherein the correction factor has a plurality of values respectivelyassigned according to a distance between the first boundary lineincluding the skew line and the corresponding reference line.
 7. Thescanning apparatus according to according to claim 1, wherein thecontroller controls the image processing part to map a coordinate of theskew line onto a coordinate of the reference line based on thecorrection factor.
 8. The scanning apparatus according to claim 1,further comprising: an image forming part for outputting the image,wherein the controller controls the image forming part to output theimage processed by the image processing part.
 9. The scanning apparatusaccording to claim 1, further comprising a folding line detecting partwhich detects folding points corresponding to points at which thedocument is furthest removed from the stage glass.
 10. The scanningapparatus according to claim 9, wherein the boundary line detecting partdetects the boundary line of a focused data of the image and the foldingline detecting part determines the folding points as being apredetermined distance from an opposite boundary lines of the focuseddata.
 11. An image processing method of a scanning apparatus comprisinga stage glass on which a document is positioned and a scanning headwhich scans an image of the document while translating below the stageglass, comprising: detecting a boundary line of the image; detecting askew line in the boundary line; setting at least one region of the imageas a correction region including the skew line; comparing the skew linewith a predetermined reference line which is a line that extends astraight line portion of the boundary line across a folding line;calculating a correction factor corresponding to the correction regionbased on a result of the comparison; and correcting the skew line andthe image data enclosed by the boundary line based on the calculatedcorrection factor.
 12. The method according to claim 11, wherein thesetting at least one region of the image comprises setting four regionsas the correction in the image of the document around the folding lineand a predetermined axis which is orthogonal to the folding line. 13.The method according to claim 12, wherein the folding point comprises atop folding point and a bottom folding point, and the region of theimage comprises a right top region, a right bottom region, a left topregion and a left bottom region, wherein the setting at least one regionof the image setting the right top region and the left top region as thecorrection regions if the top folding point is detected and the rightbottom region and setting the left bottom region as the correctionregions if the bottom folding point is detected.
 14. The methodaccording to claim 12, wherein the correction factor corresponds to eachof the correction region.
 15. The method according to claim 11, whereinthe correction factor is determined by a ratio of a distance between thepredetermined axis and points on a first boundary line including theskew line.
 16. The method according to claim 15, wherein the correctionfactor has a plurality of values respectively assigned according to adistance between the first boundary line including the skew line and thecorresponding reference line.
 17. The method according to claim 11,wherein the correcting the skew line and the image data comprisingmapping a coordinate of the skew line onto a coordinate of the referenceline based on the correction factor.
 18. The method according to claim11, further comprising outputting the corrected image data by an imageforming part.
 19. The method according to claim 11, further comprisingdetecting folding points corresponding to points at which the documentis furthest removed from the stage glass.
 20. The method according toclaim 19, wherein detecting the boundary line comprises detecting theboundary line of a focused data of the image and the detecting foldingpoints comprises determining the folding points as being a predetermineddistance from an opposite boundary lines of the focused data.